package com.sjgtw.cloud.web.jointDefenceUnit.service;

import com.sjgtw.cloud.web.jointDefenceUnit.domain.JointDefenceUnit;

import java.util.List;

/**
 * 联防单位Service接口
 * 
 * @author ruoyi
 * @date 2024-03-09
 */
public interface IJointDefenceUnitService 
{
    /**
     * 查询联防单位
     * 
     * @param id 联防单位主键
     * @return 联防单位
     */
    public JointDefenceUnit selectJointDefenceUnitById(Long id);

    /**
     * 查询联防单位列表
     * 
     * @param jointDefenceUnit 联防单位
     * @return 联防单位集合
     */
    public List<JointDefenceUnit> selectJointDefenceUnitList(JointDefenceUnit jointDefenceUnit);


    public List<JointDefenceUnit> selectRemoteJointDefenceUnitList(JointDefenceUnit jointDefenceUnit);


    /**
     * 新增联防单位
     * 
     * @param jointDefenceUnit 联防单位
     * @return 结果
     */
    public int insertJointDefenceUnit(JointDefenceUnit jointDefenceUnit);

    /**
     * 修改联防单位
     * 
     * @param jointDefenceUnit 联防单位
     * @return 结果
     */
    public int updateJointDefenceUnit(JointDefenceUnit jointDefenceUnit);

    /**
     * 批量删除联防单位
     * 
     * @param ids 需要删除的联防单位主键集合
     * @return 结果
     */
    public int deleteJointDefenceUnitByIds(Long[] ids);

    /**
     * 删除联防单位信息
     * 
     * @param id 联防单位主键
     * @return 结果
     */
    public int deleteJointDefenceUnitById(Long id);

    void batchSave(List<JointDefenceUnit> entities);

    List<String> check(List<JointDefenceUnit> entities);
}
